﻿using Grow.Json.CreateJson;
using Grow.Module.Service;

namespace Grow.Json.Text.CreateJson
{
    public class CreateJsonBuilder : ICreateJsonBuilder
    {
        private readonly IServiceContainer _serviceContainer;

        public CreateJsonBuilder(IServiceContainer serviceContainer)
        {
            _serviceContainer = serviceContainer;
        }


        //public ICreateJsonBuilder AddJsonOptions(Action<IConfigureBuilder, JsonOptions> jsonOptionsAction)
        //{
        //    _serviceContainer.ConfigureManager.ConfigureOptions<JsonOptions>(a =>
        //    {
        //        jsonOptionsAction(_serviceContainer.ConfigureManager.GetConfigureBuilder(), a);
        //    });
        //    return this;
        //}
    }
}
